package com.joe.springboot.exception;

public enum ResponseEnum implements BusinessExceptionAssert {

    /**
     * Bad licence type
     */
    BAD_LICENCE_TYPE(7001, "Bad licence type."),
    /**
     * Licence not found
     */
    LICENCE_NOT_FOUND(7002, "Licence not found."),


    OBJ_NOT_NULL(6002, "Object {0} can't be null."),

    SERVER_ERROR(5001, "Server is error."),

    VALID_ERROR(6001, "arg bing error.");

    /**
     * 返回码
     */
    private int code;
    /**
     * 返回消息
     */
    private String message;


    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }

    ResponseEnum(Integer obj, String message) {
        this.code = obj;
        this.message = message;
    }
}